@extends('layouts.app')
@section('content')
    <heading>编辑章节</heading>
    <card>
        @component('resources.chapter._form',$chapter->toArray()+['content'=>$chapter->content,'action'=>route('repositories.chapters.store',['repository'=>$repository]),'sequence'=>$sequence])
        @endcomponent
        {{--<chapter-form action="{{route('repositories.chapters.store',['repository'=>$repository])}}"--}}
        {{--:sequence="{{$sequence}}" title="{{$chapter->title}}"--}}
        {{--:type="{{ $chapter->type }}"--}}
        {{--content="{{$chapter->content}}" submit-button-text="更新"></chapter-form>--}}
    </card>

@endsection